#ifndef GETHOSTNAMEIPINFO_H
#define GETHOSTNAMEIPINFO_H

#include <QDialog>
#include <QHostInfo>
#include <QNetworkInterface>
#include <QAbstractSocket>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>

class GetHostNameIPInfo : public QDialog
{
Q_OBJECT

public:
    GetHostNameIPInfo(QWidget *parent = nullptr);
    ~GetHostNameIPInfo();

private slots:
    void onGetHostNameIPClicked();
    void onGetHostInfoClicked();

private:
    void GetHostNameAndIpAddress();

private:
    QLineEdit *lineEdit_hostname;
    QLineEdit *lineEdit_hostip;
    QPushButton *button_GetHostNameIP;
    QPushButton *button_GetHostInfo;
};

#endif // GETHOSTNAMEIPINFO_H
